package com.nengchuan.kbms.dfs.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nengchuan.kbms.common.PageServiceImpl;
import com.nengchuan.kbms.dfs.dao.ManufacturerInfoMapper;
import com.nengchuan.kbms.dfs.entity.dto.ManufacturerInfoListDTO;
import com.nengchuan.kbms.dfs.entity.dto.ManufacturerInfoPageDTO;
import com.nengchuan.kbms.dfs.entity.po.ManufacturerInfo;
import com.nengchuan.kbms.dfs.entity.vo.ManufacturerInfoVO;
import com.nengchuan.kbms.dfs.entity.vo.ManufacturerListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 供应商 服务实现类
 * </p>
 *
 * @author abe
 * @since 2020-03-24
 */
@Service
public class ManufacturerInfoServiceImpl extends PageServiceImpl<ManufacturerInfoMapper, ManufacturerInfo> implements ManufacturerInfoService {

    @Autowired
    private ManufacturerInfoMapper manufacturerInfoMapper;

    @Override
    public List<ManufacturerInfoVO> infoList(ManufacturerInfoListDTO dto) {
        return manufacturerInfoMapper.infoList(dto);
    }

    @Override
    public IPage<ManufacturerInfoVO> infoPage(ManufacturerInfoPageDTO dto) {
        return manufacturerInfoMapper.infoPage(dto);
    }

}
